package com.wmeimob.fastboot.jiubei.entity;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
* ShopOrderItems.java
* http://www.wmeimob.com
* Copyright © 2018 wmeimob All Rights Reserved,version 1.0
* @author：wjt
* Mon Aug 31 23:57:11 CST 2020 Created
*/ 

@Table(name = "`shop_order_items`")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ShopOrderItems implements Serializable {
	
   private static final long serialVersionUID = 1L;
	
    /**
     * Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 订单ID
     */
    @Column(name = "order_id")
    private Long orderId;
    /**
     * 订单编号
     */
    @Column(name = "order_no")
    private String orderNo;
    /**
     * 商品ID
     */
    @Column(name = "goods_id")
    private Integer goodsId;
    /**
     * 商品名称
     */
    @Column(name = "goods_name")
    private String goodsName;
    /**
     * 商品图片
     */
    @Column(name = "goods_img")
    private JSONArray goodsImg;
    /**
     * 商品SKU编号
     */
    @Column(name = "goods_sku_no")
    private String goodsSkuNo;
    /**
     * 规格名称（组合）
     */
    @Column(name = "goods_sku_name")
    private String goodsSkuName;
    /**
     * 商品销售价
     */
    @Column(name = "sale_price")
    private BigDecimal salePrice;
    /**
     * 购买数量
     */
    @Column(name = "sale_quantity")
    private Integer saleQuantity;
    /**
     * 该明细的运费
     */
    @Column(name = "shipping_fee")
    private BigDecimal shippingFee;
    /**
     * 销售价合计
     */
    @Column(name = "items_amount")
    private BigDecimal itemsAmount;
    /**
     * 运费抵扣
     */
    @Column(name = "items_shipping_deduction")
    private BigDecimal itemsShippingDeduction;
    /**
     * 实收款
     */
    @Column(name = "items_pay_amount")
    private BigDecimal itemsPayAmount;
    /**
     * 0 未退款 1 退款中 2 退款成功 3 退款失败
     */
    @Column(name = "refund_status")
    private String refundStatus;
    /**
     * GmtCreate
     */
    @Column(name = "gmt_create")
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    /**
     * GmtModified
     */
    @Column(name = "gmt_modified")
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;
    /**
     * 商品编号
     */
    @Column(name = "goods_no")
    private String goodsNo;

}